﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using BUS;
using DTO;
namespace GUI
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void toolStripButtonHH_Click(object sender, EventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            HoaDonBanHangBUS hdBUS = new HoaDonBanHangBUS();
            label1.Text = hdBUS.KetNoi();
        }

        private void TKHToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmTraCuuKhachHang f = new frmTraCuuKhachHang();
            f.ShowDialog();
        }

        private void toolStripButtonKH_Click(object sender, EventArgs e)
        {
            frmKhachHang f = new frmKhachHang();
            f.ShowDialog();
        }

        private void toolStripButtonNCC_Click(object sender, EventArgs e)
        {
            frmNhaCungCap f = new frmNhaCungCap();
            f.ShowDialog();
        }

        private void toolStripButtonHH_Click_1(object sender, EventArgs e)
        {
            frmMatHang f = new frmMatHang();
            f.ShowDialog();
        }

        private void toolStripButtonPBH_Click(object sender, EventArgs e)
        {
            frmHoaDonBanHang f = new frmHoaDonBanHang();
            f.ShowDialog();
        }

        private void toolStripButtonPDH_Click(object sender, EventArgs e)
        {
            frmDonDatHang f = new frmDonDatHang();
            f.ShowDialog();
        }

        private void toolStripButtonPNH_Click(object sender, EventArgs e)
        {
            frmDonNhapHang f = new frmDonNhapHang();
            f.ShowDialog();
        }

        private void toolStripButtonTNCC_Click(object sender, EventArgs e)
        {
            frmDonHangSapGiao f = new frmDonHangSapGiao();
            f.ShowDialog();
        }

        private void KHToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmKhachHang f = new frmKhachHang();
            f.ShowDialog();
        }

        private void NCCToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmNhaCungCap f = new frmNhaCungCap();
            f.ShowDialog();
        }

        private void HHToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmMatHang f = new frmMatHang();
            f.ShowDialog();
        }

        private void BHToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmHoaDonBanHang f = new frmHoaDonBanHang();
            f.ShowDialog();
        }

        private void DHToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDonDatHang f = new frmDonDatHang();
            f.ShowDialog();
        }

        private void NHToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDonNhapHang f = new frmDonNhapHang();
            f.ShowDialog();
        }

        private void SCToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDonTraHang f = new frmDonTraHang();
            f.ShowDialog();
        }

        private void THHToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmTraCuuHoaDon f = new frmTraCuuHoaDon();
            f.ShowDialog();
        }

        private void TNCCToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmTraCuuPhieuNhapHang f = new frmTraCuuPhieuNhapHang();
            f.ShowDialog();
        }

        private void TKHHToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmThongKe f = new frmThongKe();
            f.ShowDialog();
        }

        private void DNToolStripMenuItem_Click(object sender, EventArgs e)
        {
           
        }
        private void ThoatToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }
    }
}
